<?php
/** @noinspection PhpUnused */
declare(strict_types=1);

namespace app\shop\controller;

use app\shop\logic\DeliveryLogic;
use think\response\Json;

/**
 * @property DeliveryLogic $logic
 */
class DeliveryController extends BaseController
{
    public function __construct(DeliveryLogic $logic)
    {
        $this->logic = $logic;

        parent::__construct();
    }

    /**
     * 物流公司
     * @return Json
     */
    public function company(): Json
    {
        $result = $this->logic->company();

        return $this->success($result);
    }
}